<!-- light_theme/overrides/loader.html -->
<div id="global-loader" class="light-theme-loader">
    <div class="loader-container">
        <div class="frappe-logo-spinner"></div>
        <div class="progress-bar"></div>
    </div>
</div>

<script>
// 确保在DOM加载后执行
document.addEventListener('DOMContentLoaded', function() {
    if (!document.getElementById('global-loader')) {
        const loaderHTML = `{{ loader_html }}`;
        document.body.insertAdjacentHTML('beforeend', loaderHTML);
    }
});
</script>